package com.xxjh.brs.sftp.factory;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.nio.charset.Charset;

/**
 * @author CHENCHEN
 * @title a
 * @company 新兴际华科技（天津）有限公司
 * @create 2024-07-04 15:41
 */
@Configuration
@ConfigurationProperties(prefix = "sftp")
public class SftpProperties {

    private SftpServer pullServer;

    private SftpServer pushServer;

    public static class SftpServer {
        private String host;
        private int port;
        private String username;
        private String password;
        private String root;
        private Charset charset;

        public String getHost() {
            return host;
        }

        public void setHost(String host) {
            this.host = host;
        }

        public int getPort() {
            return port;
        }

        public void setPort(int port) {
            this.port = port;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getRoot() {
            return root;
        }

        public void setRoot(String root) {
            this.root = root;
        }

        public Charset getCharset() {
            return charset;
        }

        public void setCharset(Charset charset) {
            this.charset = charset;
        }
    }

    public SftpServer getPullServer() {
        return pullServer;
    }

    public void setPullServer(SftpServer pullServer) {
        this.pullServer = pullServer;
    }

    public SftpServer getPushServer() {
        return pushServer;
    }

    public void setPushServer(SftpServer pushServer) {
        this.pushServer = pushServer;
    }

}
